package com.digitalchina.lxnsy.sy.yimiaojiezhong;

import android.webkit.JavascriptInterface;

import com.digitalchina.lxnsy.base.BaseHtmlActivity;
import com.digitalchina.lxnsy.sy.caijing.AddCheckEarTag2dActivity;
import com.digitalchina.lxnsy.sy.zhuanquan.ViewChangeCircleActivity;


public class EditVaccinesRecordActivity extends BaseHtmlActivity {
    private int tag = 0;

    @Override
    protected void loadHtml() {
        webView.addJavascriptObject(new JsApi(), null);

        loadUrl("editVaccinesRecord");
        callJsMethod("refresh");

        setTitle("编辑疫苗接种记录");

    }


    @Override
    public void onResume() {
        super.onResume();
        if (tag > 0) {
            callJsMethod("refresh");
        }
        tag++;

    }



    @Override
    public void rightOnClick() {

    }

    public class JsApi {

        @JavascriptInterface
        public void addCheckEarTag2(Object msg) {
            go(AddCheckEarTag2dActivity.class);

        }

        @JavascriptInterface
        public void chooseUseVacciness(Object msg) {
            go(ChooseUseVaccinessActivity.class);

        }







    }
}
